package org.lease.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.lease.model.entity.BrowsingHistory;
import org.lease.model.vo.HistoryItemVo;

public interface BrowsingHistoryService extends IService<BrowsingHistory> {
    void saveHistory(Long userId, Long roomId);

    IPage<HistoryItemVo> pageHistoryItemByUserId(Page<HistoryItemVo> page, Long userId);
}
